//
//  CLSelectTableViewController.h
//  togetherLBS
//
//  Created by Phyllis Hu on 14-7-3.
//  Copyright (c) 2014年 celi. All rights reserved.
//  公用的选择列表控制器（根据外部传进来的数据进行展示，同时向它的代理返回选定的数据）

#import <UIKit/UIKit.h>

@class CLSelectTableViewController;

@protocol CLSelectDelegate <NSObject>

@optional
- (void)selectTableViewController:(CLSelectTableViewController *)viewController didSelectedIndexPath:(NSIndexPath *)indexPath;
- (void)selectTableViewControllerDidFinished:(CLSelectTableViewController *)viewController;

@end

@interface CLSelectTableViewController : UITableViewController
{
    //NSArray *dataArray;
    NSIndexPath *markIndexPath;
    
    id<CLSelectDelegate> delegate;
    
    NSArray *tipArray;
}

//- (id)initWithDelegate:(id<CLSelectDelegate>)theDelegate sourceData:(NSArray *)srcArray andIndexPath:(NSIndexPath *)oneIndex;
- (id)initWithDelegate:(id<CLSelectDelegate>)theDelegate sourceData:(NSArray *)srcArray andIndexPath:(NSIndexPath *)oneIndex;

- (id)initWithDelegate:(id<CLSelectDelegate>)theDelegate sourceData:(NSArray *)srcArray descriptions:(NSArray *)desArray andIndexPath:(NSIndexPath *)oneIndex;

@property NSArray *dataArray;

@end
